package com.wushi.lenovo.asia5b.app_model.good.bean;

import android.support.annotation.IntRange;

import com.mvp.utils.ResString;
import com.wushi.lenovo.asia5b.R;

/**
 * Created by zhangyuncai on 2019/12/18.
 * 订单付款页面
 */
public class StepHelper {
    private static final int[] steps = new int[]{
            R.string.step1,
            R.string.step2,
            R.string.step3,
            R.string.step4
    };


    /**
     * @param input
     * @param index
     * @return
     */
    public static String getStep(String input, @IntRange(from = 0, to = 3) int index) {
        try {
            return String.format("%s%s", ResString.get(steps[index]), input);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return "";
    }
}
